package us.wili.dev.dao.mapper.base;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import us.wili.dev.model.entity.Shopcart;
import us.wili.dev.model.example.ShopcartExample;

public interface BaseShopcartMapper {
    int insert(Shopcart record);

    int batchInsert(List<Shopcart> records);

    int insertSelective(Shopcart record);

    int deleteByExample(ShopcartExample example);

    int deleteByPrimaryKey(Long id);

    long countByExample(ShopcartExample example);

    int updateByExampleSelective(@Param("record") Shopcart record, @Param("example") ShopcartExample example);

    int updateByPrimaryKey(Shopcart record);

    int updateByPrimaryKeySelective(Shopcart record);

    Shopcart selectByPrimaryKey(@Param("id") Long id, @Param("columns") String... columns);

    Shopcart selectByPrimaryKeyForUpdate(@Param("id") Long id, @Param("columns") String... columns);

    Shopcart selectByPrimaryKeyInShareMode(@Param("id") Long id, @Param("columns") String... columns);

    List<Shopcart> selectByExample(ShopcartExample example);

    Shopcart selectOneByExample(ShopcartExample example);
}